package cn.psvmc.cxzapi.model.system;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 平台消息表
 * @Author auto
 * @Date 2024-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_platform_msg")
public class TPlatformMsg implements Serializable {

    //平台消息id
    @TableId(value = "pmid", type = IdType.AUTO)
    private Integer pmid;

    //类型（1平台通知 2违规通知 3规则更新）
    @TableField("msg_type")
    private Integer msgType;

    //状态（1已上架 2已下架）
    @TableField("msg_status")
    private Integer msgStatus;

    //标题
    @TableField("title")
    private String title;

    //概要
    @TableField("summary")
    private String summary;

    //内容
    @TableField("comm")
    private String comm;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;

    //用户
    @TableField(exist = false)
    private List<Integer> userIds;


}
